package com.reservation.entity;

import java.io.Serializable;
import java.util.Date;

public class Reservation implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer rid;
    private String name;
    private String phone;
    private Integer peopleCount;
    private Date reservationTime;
    private String status;

    // 无参构造函数
    public Reservation() {
    }

    // 带参构造函数
    public Reservation(Integer rid, String name, String phone, Integer peopleCount,
                       Date reservationTime, String status) {
        this.rid = rid;
        this.name = name;
        this.phone = phone;
        this.peopleCount = peopleCount;
        this.reservationTime = reservationTime;
        this.status = status;
    }

    // getter和setter方法
    public Integer getRid() {
        return rid;
    }

    public void setRid(Integer rid) {
        this.rid = rid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getPeopleCount() {
        return peopleCount;
    }

    public void setPeopleCount(Integer peopleCount) {
        this.peopleCount = peopleCount;
    }

    public Date getReservationTime() {
        return reservationTime;
    }

    public void setReservationTime(Date reservationTime) {
        this.reservationTime = reservationTime;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "Reservation{" +
                "rid=" + rid +
                ", name='" + name + '\'' +
                ", phone='" + phone + '\'' +
                ", peopleCount=" + peopleCount +
                ", reservationTime=" + reservationTime +
                ", status='" + status + '\'' +
                '}';
    }
}
